<%@ Page language="c#" MasterPageFile="../masterpages/umbracoPage.Master" Title="coments editor" AutoEventWireup="True" trace="false" validateRequest="false"%>
<%@ Register TagPrefix="cc1" Namespace="umbraco.uicontrols" Assembly="controls" %>
<%@ Register TagPrefix="ism" TagName="LogView" Src="controls/showlog.ascx"  %>



<asp:Content ContentPlaceHolderID="body" ID="Content1" runat="server">    
        <cc1:TabView ID="TabView1" Width="400px" Visible="true" runat="server" />

        <asp:Panel ID="tabPanel1" runat="server">
           <ism:LogView id="lv" runat="server" />
        </asp:Panel>
</asp:Content>

<script type="text/C#" runat="server">
    public TabPage tp;
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
        string extra = "";
        if (!string.IsNullOrEmpty(lv.FilterBy)) extra = string.Format("{0} [filtered by category:{1}]", extra, lv.FilterBy);
        if (!string.IsNullOrEmpty(lv.DateFilter)) extra = string.Format("{0} [filtered by:{1}]", extra, lv.DateFilter);
        tp= this.TabView1.NewTabPage("Log Manager"+extra);
        tp.Controls.Add(this.tabPanel1);
    }
   
</script>